/*验证码*/
var wait = 60;
var objBtn = document.getElementById("btn")
objBtn.disabled = false;

function time(o) {
	if (wait == 0) {
		o.removeAttribute("disabled");
		o.value = "免费获取验证码";
		wait = 5;
	} else {
		o.setAttribute("disabled", true);
		o.value = "重新发送(" + wait + ")";
		wait--;
		setTimeout(function() {
				time(o)
			},
			1000)
	}
}

/*tab切换*/
function setTabPublicFn(liList, divbox, className) {
	liList.bind('click', function() {
		var _this = $(this);
		divbox.hide().eq(liList.index(this)).show();
		var tt =  _this.children('a').text();
		document.getElementById("package").value = tt;
		_this.children('a').addClass(className);
		_this.siblings('li').children('a').removeClass(className);
	});
}